package com.easy.mapper;

import com.easy.bean.Sizes;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SizesDao {
    int add(@Param("sizes") Sizes sizes);
    int del(@Param("id") Integer id);
    int edit(@Param("sizes") Sizes sizes);
    Sizes one(@Param("id") Integer id);
    List<Sizes> all(@Param("sizes") Sizes sizes);
    List<Sizes> page(@Param("page") Page page, @Param("sizes") Sizes sizes);
    int pageCount(@Param("sizes") Sizes sizes);
}
